package com.bjsxt.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("account-service")
public interface AccountServiceFeign {

    @GetMapping("/debit/{userId}/{money}")
    ResponseEntity<Void> debit(
            @PathVariable("userId") String userId,
            @PathVariable("money") Integer money) ;
}
